#include "devicestatusinfo.h"
#include "remotedef.h"
#include <QVariant>

DeviceStatusInfo::DeviceStatusInfo()
    :BaseResp()
{
}

void DeviceStatusInfo::unserialize(QString json)
{
    BaseResp::unserialize(json);
    if (m_json.isValid())
    {
        device_status = (int)m_json.value(KEY_DEVICE_STATUS).toDouble();
    }
}

int DeviceStatusInfo::getDeviceStatus() const
{
    return device_status;
}

